package io.adrainty.bolee.insurance.repository;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.adrainty.bolee.insurance.models.entity.BannerEntity;

import java.util.List;

/**
 * <p>IBannerRepository</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description IBannerRepository
 * @since 2025/8/18 16:10:48
 */
public interface IBannerRepository {

    /**
     * 保存Banner
     * @param bannerVO bannerVO
     * @return Long
     */
    Long saveBanner(BannerEntity bannerVO);

    /**
     * 修改Banner
     * @param bannerVO bannerVO
     */
    void updateBannerById(BannerEntity bannerVO);

    /**
     * 分页查询
     * @param pageNum pageNum
     * @param pageSize pageSize
     * @param param param
     * @return IPage<BannerEntity>
     */
    IPage<BannerEntity> pageBanner(Integer pageNum, Integer pageSize, BannerEntity param);

    /**
     * 批量删除Banner
     * @param bannerIds bannerIds
     */
    void deleteBatchBanner(List<Long> bannerIds);
}
